package com.ny.entity;

import lombok.Data;

@Data
public class UserLoginDTO {
    private Integer id;
    private String username;
    private String password;

    public UserLoginDTO(User user) {
        this.id = user.getUserId();
        this.username = user.getUsername();
        this.password = user.getPassword();
    }
}